package Demo1;

public class Duk extends Animal implements IRunning,IFly{
    public Duk(String name, int age) {
        super(name, age);
    }

    @Override
    public void fly() {
        System.out.println(this.name+"正在水面上飞翔……");
    }

    @Override
    public void running() {
        System.out.println(this.name+"正在陆地上跑……");
    }

    @Override
    public void eat() {
        System.out.println(this.name+"正在吃鸭粮……");
    }
}
